<template>
	<view class="index-container">
		<view class="index-body">
			<view class="index-banner-font">
				<image class="img" src="../../static/index-banner-font.png" mode="widthFix"></image>
			</view>
			<view class="index-com-box top-index-box" @click="toDKPage()">
				<image class="image" src="../../static/index-zddk.png"></image>
				<view class="info">
					<view class="top">助店</view>
					<view class="bottom">到访店面，进行打卡</view>
				</view>
			</view>
			<view class="index-com-box" @click="toBIapex()">
				<image class="image" src="../../static/index-zhfx.png"></image>
				<view class="info">
					<view class="top">分析平台</view>
					<view class="bottom">加盟数据分析</view>
				</view> 
			</view>
			<view class="index-com-box" @click="toXDIndexPage()">
				<image class="image" src="../../static/index-xd.png"></image>
				<view class="info">
					<view class="top">图像采集</view>
					<view class="bottom">门店拍照+视频</view>
				</view> 
			</view>
			<view class="index-com-box" @click="toEvaluatingPage()">
				<image class="image" src="../../static/index-mdpj.png"></image>
				<view class="info">
					<view class="top">门店调研</view>
					<view class="bottom">加盟商评价</view>
				</view>
			</view>
			<view class="index-com-box" @click="toDag()">
				<image class="image" src="../../static/index-dag.png"></image>
				<view class="info">
					<view class="top">门店数据库</view>
					<view class="bottom">门店档案全信息</view>
				</view>
			</view>
			<view class="index-com-box" @click="tipShow()">
				<image class="image" src="../../static/index-zsgl.png"></image>
				<view class="info">
					<view class="top">招商管理</view>
					<view class="bottom">加盟招商信息</view>
				</view>
			</view>
			<view class="index-com-box" @click="tipShow()">
				<image class="image" src="../../static/index-cbk.png"></image>
				<view class="info">
					<view class="top">储备库</view>
					<view class="bottom">加盟储备</view>
				</view>
			</view>
			
			<view class="index-com-box" @click="tipShow()">
				<image class="image" src="../../static/index-cbk.png"></image>
				<view class="info">
					<view class="top">区域管理</view>
					<view class="bottom">对区域市场调研</view>
				</view>
			</view>
			<view class="index-com-box" @click="tipShow()">
				<image class="image" src="../../static/index-cbk.png"></image>
				<view class="info">
					<view class="top">合作者管理</view>
					<view class="bottom">合作者信息录入润</view>
				</view>
			</view>
			<view class="index-com-box" @click="tipShow()">
				<image class="image" src="../../static/index-cbk.png"></image>
				<view class="info">
					<view class="top">换商选商</view>
					<view class="bottom">开新店或者换商</view>
				</view>
			</view>
			<view class="index-com-box" @click="tipShow()">
				<image class="image" src="../../static/index-cbk.png"></image>
				<view class="info">
					<view class="top">经营预测</view>
					<view class="bottom">跟进销售和成本预计利润</view>
				</view>
			</view>
		</view>
		<u-toast ref="uToast" />
	</view>
</template>
<script>
	export default {
		data() {
			return {}
		},
		methods: {
			toXDIndexPage() {
				uni.navigateTo({
					url: '../xdIndex/index'
				});
			},
			toMainPage() {
				uni.navigateTo({
					url: '../main/index'
				});
			},
			toDKPage() {
				uni.navigateTo({
					url: '../dk/entrance'
				});
			},
			toEvaluatingPage() {
				uni.navigateTo({
					url: '../evaluation/list'
				});
			},
			toAuthorityPage() {
				uni.navigateTo({
					url: '../authority/authority'
				});
			},
			toZDZPage() {
				uni.navigateTo({
					url: '../zdz/list/index'
				});
			},
			toJMSZDDKPage() {
				window.open('https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbc20e61ad378ec64&redirect_uri=https%3a%2f%2fbiapex.huanai.com%2fords%2ff%3fp%3d900%3a2%3a%3a%3aNO%3a%3aP2_NEW%3a15&response_type=code&scope=snsapi_base#wechat_redirect', '_blank');
				// uni.navigateTo({
				// 	url: '../webViewH5/index?title=转店打卡记录&dkjlUrl=true'
				// });
			},
			toXxj() {
				let url = 'https://lexiangla.com/teams/k100013?company_from=aebe3318e56911e789e05254005b9a60';
				location.href=url;
				// window.open(url, '_blank');
			},
			toJy() {
				let url = 'https://lexiangla.com/questions/create?tag_name=%E5%8A%A0%E7%9B%9F%E6%B8%A0%E9%81%93%E7%9B%B8%E5%85%B3&company_from=aebe3318e56911e789e05254005b9a60';
				// let url = 'https://lexiangla.com/questions/create?tag_name=加盟渠道相关&company_from=aebe3318e56911e789e05254005b9a60';
				location.href=url;
				// window.open(url, '_blank');
			},
			toDag(){
				let url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbc20e61ad378ec64&redirect_uri=https%3A%2F%2Fbiapex.huanai.com%2Fords%2Ff%3Fp%3D148%3A9998%3A%3A%3ANO%3A%3AP9998_PAGEID:611&response_type=code&scope=snsapi_base#wechat_redirect'
				location.href=url;
			},
			tipShow(){
				this.$refs.uToast.show({
					title: '功能开发中',
					type: 'warning',
					duration: 3000,
				});
			},
			toBIapex() {
				let url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxbc20e61ad378ec64&redirect_uri=https://biapex.huanai.com/ords/f?p=148:9998:::NO::P9998_PAGEID:1&response_type=code&scope=snsapi_base#wechat_redirect';
				location.href = url;
			},
		}
	}
</script>
<style lang="scss">
	uni-page-body{
		background-color: #F3F5F7;
	}
	.index-container {
		width: 100%;
		height: 100%;
		padding: 0;
		margin: 0;
		background: url(../../static/index-bg.png);
		background-repeat: no-repeat;
		background-size: 100% auto;
		background-position: left top;
	}
	.index-body{
		width: 100%;
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
		padding: 0 15rpx 50rpx 15rpx;
	}
	
	.index-com-box{
		flex: 0 0 calc(50% - 30rpx);
		height: 162rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 6rpx 12rpx 0rpx rgba(221, 221, 221, 0.5);
		border-radius: 16rpx;
		display: flex;
		align-items: center;
		margin: 20rpx 15rpx 0 15rpx;
		.info{
			flex: 1;
		}
		
		.image{
			width: 108rpx;
			height: 108rpx;
			margin: 0rpx 11rpx 0rpx 23rpx;
		}
		
		.top{
			font-size: 30rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 600;
			color: #333333;
			letter-spacing: 1rpx;
		}
		
		.bottom{
			font-size: 12px;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #999999;
			letter-spacing: 0.5px;
			margin-top: 0px;
			line-height: 34rpx;
		}
		
	}
	
	.top-index-box{
		flex: 0 0 calc(100% - 30rpx);
		margin: 20rpx 15rpx 0rpx 15rpx;
	}
	
	.index-banner-font{
		width: 100%;
		height: 380rpx;
		padding: 0 0 2rpx 0;
		display: flex;
		align-items: center;
		justify-content: center;
		
		.img{
			width: 525rpx;
		}
	}
</style>
